@e4d If you mounted the electronics in a metal box, can you confirm that the enclosure is properly grounded (GND)? You can stop DCS on the RockPi and check via gpiotools (gpioread AFAIR) if the input signal is correctly read once you hook up that line to GND and +3.3V respectively.